package services.impl;

import beans.BusinessInformation;
import dao.BusinessInformationDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import services.BusinessInformationServices;

import java.util.List;

@Service
public class BusinessInformationServicesImpl implements BusinessInformationServices {
    @Autowired
    private BusinessInformationDao businessInformationDao;

    @Override
    public List<BusinessInformation> selectSelective(String selectText, String inputText) {
        List<BusinessInformation> list = businessInformationDao.selectSelective(selectText, inputText);
        return list;
    }

    @Override
    public List<BusinessInformation> selectList() {
        List<BusinessInformation> list = businessInformationDao.selectList();
        return list;
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        int i = businessInformationDao.deleteByPrimaryKey(id);
        return i;
    }

    @Override
    public int insert(BusinessInformation record) {
        int i = businessInformationDao.insert(record);
        return i;
    }

    @Override
    public int insertSelective(BusinessInformation record) {
        int i=businessInformationDao.insertSelective(record);
        return i;
    }

    @Override
    public BusinessInformation selectByPrimaryKey(Integer id) {
        BusinessInformation businessInformation= businessInformationDao.selectByPrimaryKey(id);
        return businessInformation;
    }

    @Override
    public int updateByPrimaryKeySelective(BusinessInformation record) {
        int i = businessInformationDao.updateByPrimaryKeySelective(record);
        return i;
    }

    @Override
    public int updateByPrimaryKey(BusinessInformation record) {
        int i = businessInformationDao.updateByPrimaryKey(record);
        return i;
    }

    @Override
    public int count() {
        return businessInformationDao.count();
    }
}
